<template>
  <view>
    <view :style="'--color:' + color + ';--rgbcolor:' + rgbcolor + ';'" class="detail_BN">
      <image :src="D.path_b" mode="widthFix"></image>
    </view>
    <view :style="'--color:' + color + ';--rgbcolor:' + rgbcolor + ';'" class="boxx ulist">
      <view class="dl">
        <view class="dt">
          <text class="i ico"></text>
          本期参与嘉宾
        </view>
        <view class="dd">
          <text class="i ico">
            
            <text class="b">{{ BM.num }}人</text>
          </text>
          已参与
        </view>
      </view>
      <view class="ul">
        <block v-if="BM.num > 0">
          <view v-for="(item, index) in BM.ulist" :key="index" class="li">
            <image :src="item" mode="aspectFill"></image>
          </view>
          <view class="li more">
            <text class="i ico"></text>
          </view>
        </block>
        <view v-else class="nodata">
          <text class="i ico"></text>
          暂时还没有人报名
        </view>
      </view>
    </view>
    <view class="boxx C">
      <rich-text :nodes="content"></rich-text>
    </view>
    <view class="blank"></view>
    <view class="manghe_btm">
      <view class="a" @tap="btn_inFn">
        <text class="i ico"></text>
        存入自己
      </view>
      <view class="a" @tap="btn_outFn">
        <text class="i ico"></text>
        取出对象
      </view>
    </view>
    <view v-if="MARQUEE.length > 0" class="iMarqueeBox">
      <swiper :autoplay="true" :circular="true" :vertical="true" interval="2000">
        <swiper-item v-for="(item, index) in MARQUEE" :key="index" class="iMarquee">
          <view class="li">
            <image :src="item.p" mode="aspectFill"></image>
            <text class="font">{{ item.c }}</text>
          </view>
        </swiper-item>
      </swiper>
    </view>
    <view v-if="div_in_form" class="mask2 alpha0_100">
      <view class="div_box big_normal div_in_form" style="--div_box_width: 82%; --div_box_height: 800rpx">
        <view class="close ico" @tap="div_in_form_closeFn"></view>
        <view class="div_title">存入资料</view>
        <form class="in_form" @submit="btn_insubmitFn">
          <view class="dl">
            <view class="dt">性别</view>
            <view class="dd">
              <radio-group name="sex">
                <label class="sex1">
                  <radio color="#5FC5F5" value="1"></radio>
                  男
                </label>
                　　
                <label class="sex2">
                  <radio color="#FF589B" value="2"></radio>
                  女
                </label>
              </radio-group>
            </view>
          </view>
          <view class="dl">
            <view class="dt">微信</view>
            <view class="dd">
              <input autocomplete="off" class="input" maxlength="50" name="weixin" placeholder="输入本人微信或手机"/>
            </view>
          </view>
          <view class="dl aboutus">
            <view class="dt">爱情宣言</view>
            <view class="dd">
              <textarea class="textarea" name="aboutus" placeholder="输入简短个人介绍(100字以内)"></textarea>
            </view>
          </view>
          <view class="dl">
            <view class="dt">照片</view>
            <view class="dd photo_sbtn" @tap="photo_s_addFn">
              <text v-if="WXS.empty(photo_s)" class="photo_tips ico"> 点击上传本人近期生活照</text>
              <image v-else :src="photo_s" mode="aspectFill"></image>
              <input :value="photo_s_dbname" name="photo_s"/>
            </view>
          </view>
          <view class="em">
            诚信交往，先存后取，本人微信号或手机必须真实，否则将纳入失信人员名单并进行
            <text class="font Cf00">封号处理</text>
          </view>
          <button :style="'--color:' + color + ';--rgbcolor:' + rgbcolor + ';'" class="btn4 ico" formType="submit">
            放入{{ D.manghe_t }}
          </button>
        </form>
      </view>
    </view>
    <view v-if="div_out_form" class="mask2 alpha0_100">
      <view :style="'--div_box_width:80%;--div_box_height:630rpx;background-image:url(' + OUT.mh_bgpic + ');'"
            class="div_box big_normal div_out_form">
        <view class="close ico" @tap="div_in_form_closeFn"></view>
        <view :style="'--color:' + color + ';--rgbcolor:' + rgbcolor + ';'" class="outbox">
          <image id="out_path_b" :src="OUT.path_b" mode="aspectFill"></image>
          <view class="dl">
            <text class="span">
              性别：
              <text class="font">{{ OUT.sex }}</text>
            </text>
          </view>
          <view class="dl">
            <text class="span">
              微信：
              <text class="font">{{ OUT.weixin }}</text>
            </text>
          </view>
          <view class="dl">
            介绍：
            <text class="font out_aboutus">{{ OUT.aboutus }}</text>
          </view>
          <view class="dl">
            暗号：
            <text class="font">{{ OUT.yzah }}</text>
          </view>
          <text class="btn3 ico" @tap="copywxFn"> 复制微信</text>
        </view>
      </view>
    </view>
    <view v-if="div_outlist" :class="'mask1 ' + mask_class" data-closekind="back" data-maskid="div_outlist"
          @tap="mask_closeFn">
      <view
          :class="'div_bottom div_bottom_yuan ' + div_outlist_box_class"
          :style="'--div_box_height:850rpx;--color:' + color + ';--rgbcolor:' + rgbcolor"
          @tap.stop.prevent="emptyFn"
      >
        <view class="closert ico" data-closekind="back" data-maskid="div_outlist" @tap.stop.prevent="mask_closeFn">
        </view>
        <view class="T">取出历史</view>
        <view class="outlist">
          <block v-if="OUTLIST.length > 0">
            <view v-for="(item, index) in OUTLIST" :key="index" class="dl">
              <view class="dt">
                <image :src="item.photo_s_url" mode="aspectFill"></image>
              </view>

              <view class="dd">
                {{ item.nickname }}（{{ item.addtime }}）
                <view class="h6">
                  <text class="span ico"></text>
                  {{ item.weixin }}
                </view>
              </view>

              <view :data-weixin="item.weixin" class="btn3 ico" @tap="copywxFn2"> 复制</view>
            </view>
          </block>
          <view v-else class="nodata">
            <image mode="aspectFit" src="/static/res/img/nodata.png"></image>
            暂无记录　
            <text :style="'color:' + color" data-t="1"></text>
          </view>
        </view>
      </view>
    </view>
    <!-- parse <include src="../component/sorry.wxml"></include> -->
    <block>
      <view v-if="div_vip" :class="'mask2 ' + mask_class" data-maskid="div_vip" @tap="mask_closeFn">
        <view :style="'--div_box_width:600rpx;--div_box_height:' + (div_vip_H > 0 ? div_vip_H : 480) + 'rpx;'"
              class="div_box div_vip"
              @tap.stop.prevent="emptyFn">
          <view class="closebtm ico" data-maskid="div_vip" @tap.stop.prevent="mask_closeFn"></view>
          <view class="h1">{{ div_vip_title }}</view>
          <text v-if="!WXS.empty(div_vip_content)" class="C S15">{{ div_vip_content }}</text>
          <block v-else>
            <view class="C S15">开通VIP超级会员，专享超值权益</view>
            <view class="C S15">相亲成功率大大提升</view>
          </block>
          <view class="ico picico"></view>
          <view class="btn_btm btn44 ico" @tap.stop.prevent="vipFn"> 立即开通</view>
        </view>
      </view>
      <view v-if="div_cert" :class="'mask2 ' + mask_class" data-closekind="back" data-maskid="div_cert"
            @tap="mask_closeFn">
        <view class="div_box div_cert" style="--div_box_width: 600rpx; --div_box_height: 480rpx"
              @tap.stop.prevent="emptyFn">
          <view class="closebtm ico" data-closekind="back" data-maskid="div_cert" @tap.stop.prevent="mask_closeFn">
          </view>
          <view class="h1">{{ div_cert_title }}</view>
          <view class="C S15">成为认证用户，即享沟通特权</view>
          <view class="C S15">提高诚信值，杜绝虚假</view>
          <view class="ico picico"></view>
          <view class="btn_btm btn44 ico" @tap.stop.prevent="certFn">立即认证</view>
        </view>
      </view>
      <view v-if="div_data" :class="'mask2 ' + mask_class" data-closekind="back" data-maskid="div_data"
            @tap="mask_closeFn">
        <view :style="'--div_box_width:600rpx;--div_box_height:490rpx;--color:' + color + ';--rgbcolor:' + rgbcolor"
              class="div_box div_data"
              @tap.stop.prevent="emptyFn">
          <view class="closebtm ico" data-closekind="back" data-maskid="div_data" @tap.stop.prevent="mask_closeFn">
          </view>
          <view class="h1">{{ div_data_title }}</view>
          <view class="C S15">赶快去完善，解锁更多功能</view>
          <view class="C S15">完成资料，上传头像，受关注度暴增</view>
          <view class="C S15 Cf00">如果还未审核，请等待审核</view>
          <view class="ico picico"></view>
          <view class="btn_btm btn44 ico" @tap.stop.prevent="dataFn">立即完善</view>
        </view>
      </view>
      <view v-if="div_gps" :class="'mask2 ' + mask_class" data-closekind="back" data-maskid="div_gps"
            @tap="mask_closeFn">
        <view :style="'--div_box_width:550rpx;--div_box_height:480rpx;--color:' + color + ';--rgbcolor:' + rgbcolor"
              class="div_box div_gps"
              @tap.stop.prevent="emptyFn">
          <view class="closebtm ico" data-closekind="back" data-maskid="div_gps" @tap.stop.prevent="mask_closeFn">
          </view>
          <view class="h1">{{ div_gps_title }}</view>
          <view class="C S15">授权后，将自动获取您当前位置</view>
          <view class="C S15">否则将无法使用《附近的人》功能</view>
          <view class="ico picico"></view>
          <view class="btn_btm btn44 ico" @tap.stop.prevent="gpsFn">同意获取位置</view>
        </view>
      </view>
    </block>
    <!-- parse <include src="../login.wxml"></include> -->
    <block>
      <view v-if="div_login" class="mask3 alpha0_100">
        <view
            class="div_box big_normal"
            style="--div_box_width: 82%; --div_box_height: 666rpx; background: -webkit-linear-gradient(top, #fde9ee 1%, #fff 150%); background-color: #fff"
        >
          <view :style="'border-color:rgba(' + rgbcolor + ',.2);'" class="m">
            <image mode="aspectFit" src="/static/res/img/photo_m.png"></image>
          </view>
          <view class="S22 B">登录后获得更精准推荐</view>
          <view class="loginagree">
            <checkbox-group @change="ifagreeFn">
              <label style="margin-left: -10rpx">
                <checkbox :style="'--color:' + color + ';'" value="1"></checkbox>
                <text class="C666 vmiddle">阅读并同意</text>
              </label>
            </checkbox-group>
            <navigator :style="'color:' + color" class="vmiddle" hoverClass="none"
                       url="/pagesA/about/law?kind=agreement">用户协议
            </navigator>
            <text class="C666 vmiddle">与</text>
            <navigator :style="'color:' + color + ';'" class="vmiddle" hoverClass="none"
                       url="/pagesA/about/law?kind=declara">隐私条款
            </navigator>
          </view>
          <button
              v-if="ifagree"
              :style="'--color:' + color + ';--rgbcolor:' + rgbcolor + ';width:73%'"
              class="btn5 W90_"
              openType="getPhoneNumber"
              @getphonenumber="getPhoneNumber"
          >
            <text>手机号快捷登录</text>
            <text :style="'color: ' + color + ';'">私密</text>
          </button>
          <button v-else :style="'--color:' + color + ';--rgbcolor:' + rgbcolor + ';width:73%'"
                  class="btn5" @tap="ifagree_passFn">
            <text>手机号快捷登录</text>
            <text :style="'color: ' + color + ';'">私密</text>
          </button>
          <view class="C666" @tap="back">
            <text style="border-bottom: #999 1px solid">暂不登录</text>
          </view>
        </view>
      </view>
    </block>
    <view :style="'--color:' + color + ';--rgbcolor:' + rgbcolor" class="btmKefuBtn outlistBtn loop_s_b_s"
          @tap="outlistFn">
      <view class="span">
        <view>取出</view>
        <view>历史</view>
      </view>
    </view>
    <view v-if="backtop_flag" :style="'color:' + color" class="backtop fadeInUp" @tap="backtopFn">
      <text class="ico icon-backtop"></text>
      顶部
    </view>
  </view>
</template>
<script lang="wxs" module="WXS" src="@/res/www.a9a.cn.wxs"></script>
<script>
var t;
var i = require('../../@babel/runtime/helpers/defineProperty');
var a = require('../../res/www.a9a.cn.js');
var app = getApp();
export default {
  data() {
    return {
      id: 0,
      mask_class: 'alpha0_100',
      div_outlist_box_class: 'div_upAnm1',
      color: '',
      rgbcolor: '',
      backtop_flag: false,
      nTitle: '',

      D: {
        path_b: '',
        manghe_t: ''
      },

      BM: {
        num: '',
        ulist: []
      },

      MARQUEE: '',
      SHARE: '',
      content: '',
      ios_ifpay: '',
      div_in_form: false,
      photo_s: '',
      photo_s_dbname: '',

      OUT: {
        mh_bgpic: '',
        path_b: '',
        sex: '',
        weixin: '',
        aboutus: '',
        yzah: ''
      },

      div_out_form: false,
      div_login: false,
      OUTLIST: '',
      div_outlist: false,
      ifagree: false,
      div_vip: '',
      div_vip_H: 0,
      div_vip_title: '',
      div_vip_content: '',
      div_cert: '',
      div_cert_title: '',
      div_data: '',
      div_data_title: '',
      div_gps: [],
      div_gps_title: ''
    };
  },
  onLoad: function (t) {
    var i;
    var that = this;
    var e = this;
    app.globalData.get_config('_ZEAI').then(function (t) {
      e.setData({
        color: app.globalData._ZEAI.color,
        rgbcolor: a.c16_rgb(app.globalData._ZEAI.color)
      });
      uni.setNavigationBarColor({
        backgroundColor: app.globalData._ZEAI.color,
        frontColor: '#ffffff'
      });
      uni.setBackgroundColor({
        backgroundColorTop: app.globalData._ZEAI.color
      });
    });
    if (a.ifint(t.id)) {
      i = t.id;
    } else {
      for (var s = decodeURIComponent(t.scene), c = {}, l = 0; l < s.split('*').length; l++) {
        var u = s.split('*')[l].split('/');
        c[u[0]] = u[1];
      }
      i = a.ifint(c.f) ? c.f : 0;
    }
    i = e.setData({
      id: i
    });
    app.globalData.get_openid().then(function (t) {
      that.init();
    });
  },
  onPageScroll: function (t) {
    t.scrollTop > 100
        ? this.setData({
          backtop_flag: true
        })
        : this.setData({
          backtop_flag: false
        });
  },
  onPullDownRefresh: function () {
    var that = this;
    uni.vibrateShort({
      type: 'heavy'
    });
    setTimeout(function () {
      uni.stopPullDownRefresh();
      that.init();
    }, 500);
  },
  onShareAppMessage: function (t) {
    return {
      imageUrl: this.SHARE.imgurl,
      title: this.SHARE.title,
      path: '/pages/huxuan/yuanfen_detail?id=' + id
    };
  },
  onShareTimeline: function () {
    return {
      imageUrl: this.SHARE.imgurl,
      title: this.SHARE.title,
      query: 'id=' + id,
      path: '/pages/huxuan/yuanfen_detail'
    };
  },
  methods: {
    init: function () {
      var that = this;
      uni.showLoading({
        title: '拼命加载中...',
        mask: true
      });
      uni.showNavigationBarLoading();
      t = uni.getStorageSync('COOK_U');
      app.globalData.ajax({
        url: 'yuanfen.php',
        data: {
          submitok: 'yuanfen_detail',
          openid: t.openid,
          id: that.id
        },
        success: function (t) {
          1 == t.flag
              ? (that.setData({
                nTitle: t.D.title,
                D: t.D,
                BM: t.BM,
                MARQUEE: t.MARQUEE,
                SHARE: t.SHARE,
                content: a.escape2Html(t.D.content),
                ios_ifpay: t.ios_ifpay
              }),
                  uni.setNavigationBarTitle({
                    title: t.D.title
                  }),
                  uni.setBackgroundColor({
                    backgroundColorTop: that.color
                  }))
              : uni.showToast({
                title: t.msg,
                icon: 'none',
                mask: true
              });
          uni.hideLoading();
          uni.hideNavigationBarLoading();
        }
      });
    },

    btn_inFn: function () {
      var that = this;
      uni.showLoading({
        title: '玩命加载中',
        mask: true
      });
      app.globalData.ajax({
        url: 'yuanfen.php',
        data: {
          submitok: 'chkin',
          openid: t.openid,
          id: that.id
        },
        success: function (n) {
          uni.hideLoading();
          1 == n.flag
              ? that.setData({
                div_in_form: true
              })
              : 'pay' == n.flag
                  ? 1 != that.ios_ifpay.flag
                      ? uni.getSystemInfo({
                        success: function (n) {
                          'ios' == n.platform
                              ? uni.showModal({
                                title: '温馨提示',
                                content: that.ios_ifpay.tips,
                                confirmColor: that.color,
                                cancelText: '返回',
                                confirmText: '联系经纪人',
                                success: function (t) {
                                  t.confirm
                                      ? uni.redirectTo({
                                        url: '/myPages/hongniang/hongniang'
                                      })
                                      : t.cancel && uni.navigateBack();
                                }
                              })
                              : app.globalData.pay({
                                data: {
                                  submitok: 'manghe_pay',
                                  openid: t.openid,
                                  id: that.id
                                },
                                success: function (t) {
                                  that.setData({
                                    div_in_form: true
                                  });
                                },
                                fail: function (t) {
                                  t.this = that;
                                  t.url = 'no';
                                  a.sorry(t);
                                }
                              });
                        }
                      })
                      : app.globalData.pay({
                        data: {
                          submitok: 'manghe_pay',
                          openid: t.openid,
                          id: that.id
                        },
                        success: function (t) {
                          that.setData({
                            div_in_form: true
                          });
                        },
                        fail: function (t) {
                          t.this = that;
                          t.url = 'no';
                          a.sorry(t);
                        }
                      })
                  : ((n.this = that), (n.url = 'no'), a.sorry(n));
        }
      });
    },

    btn_insubmitFn: function (i) {
      var that = this;
      var e = i.detail.value;
      app.globalData.empty(e.sex)
          ? uni.showToast({
            title: '请选择本人【性别】',
            icon: 'none',
            mask: true
          })
          : app.globalData.ifweixin(e.weixin)
              ? uni.showModal({
                title: '',
                content: '确定本人资料真实么？否则将行进封号，并上报IP交由公安机关处理',
                confirmColor: that.color,
                cancelText: '取消',
                confirmText: '确定',
                success: function (i) {
                  if (i.confirm) {
                    uni.showLoading({
                      title: '正在保存',
                      mask: true
                    });
                    app.globalData.ajax({
                      url: 'yuanfen.php',
                      data: {
                        submitok: 'add_update',
                        openid: t.openid,
                        id: that.id,
                        sex: e.sex,
                        weixin: e.weixin,
                        aboutus: e.aboutus,
                        photo_s: e.photo_s
                      },
                      success: function (t) {
                        uni.hideLoading();
                        1 == t.flag
                            ? uni.showModal({
                              content: t.msg,
                              confirmColor: that.color,
                              confirmText: '朕知道了',
                              showCancel: false,
                              success: function (t) {
                                that.setData({
                                  div_in_form: false
                                });
                                uni.startPullDownRefresh();
                              }
                            })
                            : ((t.this = that), (t.url = 'no'), a.sorry(t));
                      }
                    });
                  }
                }
              })
              : uni.showToast({
                title: '请输入本人【微信或手机】',
                icon: 'none',
                mask: true
              });
    },

    photo_s_addFn: function () {
      var that = this;
      uni.chooseMedia({
        count: 1,
        mediaType: ['image'],
        sourceType: ['album', 'camera'],
        sizeType: ['compressed'],
        success: function (n) {
          that.setData({
            photo_s: n.tempFiles[0].tempFilePath
          });
          uni.uploadFile({
            url: app.globalData.WWW + '/api/wxxcx/yuanfen.php',
            filePath: n.tempFiles[0].tempFilePath,
            name: 'pic',
            formData: {
              submitok: 'up',
              openid: t.openid
            },
            success: function (t) {
              1 == (t = a.jsoneval(t.data)).flag
                  ? that.setData({
                    photo_s_dbname: t.dbname
                  })
                  : uni.showModal({
                    content: t.msg,
                    confirmColor: that.color,
                    confirmText: '朕知道了',
                    showCancel: false,
                    success: function (t) {
                    }
                  });
            }
          });
        }
      });
    },

    btn_outFn: function () {
      var that = this;
      uni.showLoading({
        title: '玩命加载中',
        mask: true
      });
      app.globalData.ajax({
        url: 'yuanfen.php',
        data: {
          submitok: 'chkout',
          openid: t.openid,
          id: that.id
        },
        success: function (n) {
          1 == n.flag
              ? that.setData({
                OUT: n.OUT,
                div_out_form: true
              })
              : 'pay' == n.flag
                  ? 1 != that.ios_ifpay.flag
                      ? uni.getSystemInfo({
                        success: function (n) {
                          'ios' == n.platform
                              ? uni.showModal({
                                title: '温馨提示',
                                content: that.ios_ifpay.tips,
                                confirmColor: that.color,
                                cancelText: '返回',
                                confirmText: '联系经纪人',
                                success: function (t) {
                                  t.confirm
                                      ? uni.redirectTo({
                                        url: '/myPages/hongniang/hongniang'
                                      })
                                      : t.cancel && uni.navigateBack();
                                }
                              })
                              : app.globalData.pay({
                                data: {
                                  submitok: 'manghe_pay',
                                  openid: t.openid,
                                  id: that.id
                                },
                                success: function () {
                                  that.btn_outFn();
                                },
                                fail: function (t) {
                                  t.this = that;
                                  t.url = 'no';
                                  a.sorry(t);
                                }
                              });
                        }
                      })
                      : app.globalData.pay({
                        data: {
                          submitok: 'manghe_pay',
                          openid: t.openid,
                          id: that.id
                        },
                        success: function () {
                          that.btn_outFn();
                        },
                        fail: function (t) {
                          t.this = that;
                          t.url = 'no';
                          a.sorry(t);
                        }
                      })
                  : ((n.this = that), (n.url = 'no'), a.sorry(n));
          uni.hideLoading();
        }
      });
    },

    back: function () {
      this.setData({
        div_login: false
      });
    },

    copywxFn: function (t) {
      a.copy_text({
        data: this.OUT.weixin,
        msg: '复制成功'
      });
    },

    outlistFn: function () {
      var that = this;
      uni.showLoading({
        title: '玩命加载中',
        mask: true
      });
      app.globalData.ajax({
        url: 'yuanfen.php',
        data: {
          submitok: 'outlist',
          openid: t.openid,
          id: that.id
        },
        success: function (t) {
          uni.hideLoading();
          1 == t.flag
              ? that.setData({
                OUTLIST: t.OUTLIST,
                div_outlist: true
              })
              : uni.showToast({
                title: t.msg,
                icon: 'none',
                mask: true
              });
        }
      });
    },

    copywxFn2: function (t) {
      var i = t.currentTarget.dataset.weixin;
      a.copy_text({
        data: i,
        msg: '复制成功'
      });
    },

    div_in_form_closeFn: function () {
      this.setData({
        div_in_form: false,
        div_out_form: false
      });
    },

    backtopFn: function () {
      uni.pageScrollTo({
        scrollTop: 0
      });
    },

    mask_closeFn: function (t) {
      var that = this;
      var o = t.currentTarget.dataset.maskid;
      this.setData({
        mask_class: 'alpha100_0',
        div_outlist_box_class: 'div_upAnm2'
      });
      setTimeout(function () {
        var t;
        that.setData((i((t = {}), o, false), i(t, 'mask_class', 'alpha0_100'), i(t, 'div_outlist_box_class', 'div_upAnm1'), t));
      }, 500);
    },

    emptyFn: function () {
    },

    vipFn: function () {
      app.globalData.chklogin().then(function (t) {
        t
            ? uni.navigateTo({
              url: '/pagesA/my_vip/my_vip'
            })
            : uni.navigateTo({
              url: '/pages/login/login'
            });
      });
    },

    certFn: function () {
      app.globalData.chklogin().then(function (t) {
        t
            ? uni.navigateTo({
              url: '/myPages/cert/cert'
            })
            : uni.navigateTo({
              url: '/pages/login/login'
            });
      });
    },

    dataFn: function () {
      app.globalData.chklogin().then(function (t) {
        t
            ? uni.navigateTo({
              url: '/pagesA/reg/reg'
            })
            : uni.navigateTo({
              url: '/pages/login/login'
            });
      });
    },

    getPhoneNumber: function (t) {
      app.globalData.getPhoneNumber({
        e: t,
        url: '/pages/my/my'
      });
    },

    ifagreeFn: function (t) {
      1 == t.detail.value
          ? this.setData({
            ifagree: true
          })
          : this.setData({
            ifagree: false
          });
    },

    ifagree_passFn: function () {
      uni.showToast({
        title: '请先点击同意《用户协议》和《隐私条款》',
        icon: 'none',
        mask: true,
        duration: 3000
      });
    },

    gpsFn() {
      console.log('占位：函数 gpsFn 未声明');
    }
  }
};
</script>
<style>
@import './yuanfen_detail.css';
</style>
